# maintainedButton object example

The following example shows the maintainedButton object:

`<maintainedButton name="MaintainedPushButton1" height="43" width="111" left="11" top="144" visible="true" wallpaper="false" isReferenceObject="false" audio="true" backStyle="solid" borderStyle="raisedInset" borderUsesBackColor="false" borderWidth="4" description="" highlightColor="lime" horizontalMargin="0" verticalMargin="0" shape="rectangle" touch="true" nextStateBasedOn="currentState" currentStateId="0" captionOnBorder="False" keyAssignment="F11">`

`<states>`

`<state stateId="Error" backColor="#8C0000" borderColor="#FF6800" patternColor="white" patternStyle="none" blink="true">`

`<caption fontFamily="Arial" fontSize="10" bold="false" italic="false" underline="false" strikethrough="false" caption="Error" color="white" backColor="navy" backStyle="transparent" alignment="middleCenter" wordWrap="true" blink="false" />`

`<imageSettings imageName="" alignment="middleCenter" backStyle="transparent" color="white" backColor="navy" scaled="false" blink="false" />`

`</state>`

`<state stateId="0" value="0" backColor="#008C00" borderColor="#80FF80" patternColor="white" patternStyle="none" blink="false">`

`<caption fontFamily="Arial" fontSize="10" bold="false" italic="false" underline="false" strikethrough="false" caption="maintained 0" color="white" backColor="navy" backStyle="transparent" alignment="middleCenter" wordWrap="true" blink="false" />`

`<imageSettings imageName="" alignment="middleCenter" backStyle="transparent" color="white" backColor="navy" scaled="false" blink="false" />`

`</state>`

`<state stateId="1" value="1" backColor="#80FF80" borderColor="#008C00" patternColor="white" patternStyle="none" blink="false">`

`<caption fontFamily="Baskerville Old Face" fontSize="10" bold="false" italic="false" underline="false" strikethrough="false" caption="State1" color="#004000" backColor="navy" backStyle="transparent" alignment="middleCenter" wordWrap="true" blink="false" />`

`<imageSettings imageName="" alignment="middleCenter" backStyle="transparent" color="white" backColor="navy" scaled="false" blink="false" />`

`</state>`

`</states>`

`<animations>`

`<animateVisibility expression="TagS2" expressionTrueState="visible" />`

`</animations>`

<connections>

`<connection name="Value" expression="TagS2" />`

`<connection name="Indicator" expression="TestS2" />`

`</connections>`

`</maintainedButton>`

## See also

Push button objects: maintainedButton object

maintainedButton object attributes and elements